package com.flca.frw.events
{
    import flash.events.Event;
    
    /**
    * Event used from the PaginView/Ctrl back again that another page is requested
    */
    public class PagingEventGetPage extends flash.events.Event
    {
    	public static const EVENTNAME:String = "PagingEventGetPage-";
    	
    	private var _id : String;
    	private var _pagenr : int;

        public function PagingEventGetPage(aId:String, aPagenr:int)
        {
        	_id = aId;
        	_pagenr = aPagenr;
        	
            super(EVENTNAME + _id);
        }
        
        public function get pageNr() : int {
        	return _pagenr;
        }

        public static function getEventName(id:String) : String {
        	return EVENTNAME + id;
        }
    }
}